import type { PlusColumn } from 'plus-pro-components'

export function useForm() {
    const schema: PlusColumn[] = [
        {
            colProps: {
                span: 6,
            },
            label: '开户账号',
            prop: 'accountNumber',
            valueType: 'copy',
        },
        {
            colProps: {
                span: 6,
            },
            label: '开户名',
            prop: 'accountName',
            valueType: 'copy',
        },
        {
            colProps: {
                span: 6,
            },
            label: '开户行',
            prop: 'bankName',
            valueType: 'copy',
        },
    ] as const

    const state = {
        accountName: '',
        accountNumber: '',
        bankName: '',
    }
    const form = ref({
        ...state,
    })

    return { form, schema, state }
}
